Skip to content

Conversation

pommicket
Copy link

@pommicket pommicket commented May 12, 2025

and use it instead of clippy::only_used_in_recursion when the parameter in question is self.

Fixes #10370

changelog: [only_used_in_recursion]: Don't lint if parameter is self; add pedantic self_only_used_in_recursion lint.

@rustbot
Copy link
Collaborator

rustbot commented May 12, 2025

r? @dswij

rustbot has assigned @dswij.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 12, 2025
@dswij
Copy link
Member

dswij commented Jun 5, 2025

r? clippy

@rustbot rustbot assigned llogiq and unassigned dswij Jun 5, 2025
@pommicket pommicket force-pushed the self_only_used_in_recursion branch 2 times, most recently from a59c129 to cc321f8 Compare June 6, 2025 14:30
@pommicket pommicket requested a review from samueltardieu June 14, 2025 21:41
@pommicket pommicket force-pushed the self_only_used_in_recursion branch from cc321f8 to de3eac5 Compare July 4, 2025 15:16
@llogiq
Copy link
Contributor

llogiq commented Jul 6, 2025

Since Samuel has already given a basic review, r? @samueltardieu

@rustbot rustbot assigned samueltardieu and unassigned llogiq Jul 6, 2025
@samueltardieu samueltardieu added the A-lint Area: New lints label Jul 11, 2025
and use it instead of clippy::only_used_in_recursion
when the parameter in question is self.
@pommicket pommicket force-pushed the self_only_used_in_recursion branch from de3eac5 to e240635 Compare August 11, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clippy::only_used_in_recursion considers self, but unused_variables does not
5 participants